// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_FIN_RETURN_MONEY_ITEM
// * CreateDate    : 2014-06-05 18:29:53
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:53
// * LastChanger   : 2014-06-05 18:29:53
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class FinReturnMoneyItemEntity : EntityBase
    {
        public FinReturnMoneyItemTable TableSchema
        {
            get
            {
                return FinReturnMoneyItemTable.Current;
            }
		}
		
		public FinReturnMoneyItemEntity()
        {

        }
		
		public FinReturnMoneyItemEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ReturnMoneyItemId = Convert.ToString(CommonFunctions.ToObject(dr["RETURN_MONEY_ITEM_ID"]));
			this.ReturnMoneyId = Convert.ToString(CommonFunctions.ToObject(dr["RETURN_MONEY_ID"]));
			this.ProductName = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_NAME"]));
			this.ProductCode = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_CODE"]));
			this.ReturnQty = Convert.ToString(CommonFunctions.ToObject(dr["RETURN_QTY"]));
			this.ReturnMoney = Convert.ToString(CommonFunctions.ToObject(dr["RETURN_MONEY"]));
        }
		
		public FinReturnMoneyItemEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ReturnMoneyItemId = Convert.ToString(CommonFunctions.ToObject(dr["RETURN_MONEY_ITEM_ID"]));
			this.ReturnMoneyId = Convert.ToString(CommonFunctions.ToObject(dr["RETURN_MONEY_ID"]));
			this.ProductName = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_NAME"]));
			this.ProductCode = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_CODE"]));
			this.ReturnQty = Convert.ToString(CommonFunctions.ToObject(dr["RETURN_QTY"]));
			this.ReturnMoney = Convert.ToString(CommonFunctions.ToObject(dr["RETURN_MONEY"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return FinReturnMoneyItemTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string ReturnMoneyItemId
        {
            get { return Convert.ToString(GetData(FinReturnMoneyItemTable.C_RETURN_MONEY_ITEM_ID)); }
            set { SetData(FinReturnMoneyItemTable.C_RETURN_MONEY_ITEM_ID, value); }
        }
		
        [DataMember]
        public string ReturnMoneyId
        {
            get { return Convert.ToString(GetData(FinReturnMoneyItemTable.C_RETURN_MONEY_ID)); }
            set { SetData(FinReturnMoneyItemTable.C_RETURN_MONEY_ID, value); }
        }
		
        [DataMember]
        public string ProductName
        {
            get { return Convert.ToString(GetData(FinReturnMoneyItemTable.C_PRODUCT_NAME)); }
            set { SetData(FinReturnMoneyItemTable.C_PRODUCT_NAME, value); }
        }
		
        [DataMember]
        public string ProductCode
        {
            get { return Convert.ToString(GetData(FinReturnMoneyItemTable.C_PRODUCT_CODE)); }
            set { SetData(FinReturnMoneyItemTable.C_PRODUCT_CODE, value); }
        }
		
        [DataMember]
        public string ReturnQty
        {
            get { return Convert.ToString(GetData(FinReturnMoneyItemTable.C_RETURN_QTY)); }
            set { SetData(FinReturnMoneyItemTable.C_RETURN_QTY, value); }
        }
		
        [DataMember]
        public string ReturnMoney
        {
            get { return Convert.ToString(GetData(FinReturnMoneyItemTable.C_RETURN_MONEY)); }
            set { SetData(FinReturnMoneyItemTable.C_RETURN_MONEY, value); }
        }
		
		#endregion
	}
	
	
}	

